<template>
  <div id="app">
    <Category title="美食分类">
      <img
        src="https://img.zcool.cn/community/0110585ec94472a801214d72afe0be.jpg@1280w_1l_2o_100sh.jpg"
        alt="小龙虾"
      />
      <a slot="footer" href="http://www.atguigu.com">更多美食</a>
    </Category>
    <Category title="游戏分类">
      <ul>
        <li v-for="(game, index) in games" :key="index">
          {{ game }}
        </li>
      </ul>
      <div class="foot" slot="footer">
        <a href="http://www.atguigu.com">单机游戏</a>
        <a href="http://www.atguigu.com">网络游戏</a>
      </div>
    </Category>
    <Category title="电影分类" slot="footer">
      <video
        src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
        controls
      ></video>
      <div class="foot" slot="footer">
        <a href="http://www.atguigu.com">经典</a>
        <a href="http://www.atguigu.com">热门</a>
        <a href="http://www.atguigu.com">推荐</a>
      </div>
    </Category>
  </div>
</template>

<script>
import Category from "./components/Category.vue";

export default {
  name: "App",
  components: {
    Category,
  },
  data() {
    return {
      foods: ["火锅", "烧烤", "小龙虾", "牛排"],
      games: ["红色警戒", "穿越火线", "劲舞团", "超级玛丽"],
      films: ["《教父》", "《拆弹专家》", "《你好，李焕英》", "《尚硅谷》"],
    };
  },
};
</script>

<style>
a {
  display: inline;  /* 三个框（四框使用 25%，两框使用 50%，以此类推） */
  margin: 5px;
}
</style>
